import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from '@/uni_modules/uview-ui'
// 引入头部导航组件
import headNav from "@/components/headNav/headNav.vue";
import empty from "@/components/empty/empty.vue";
Vue.prototype.getImg = function (name, suffix = '.png') {
	return require(`@/static/imgs/${name}${suffix}`)
}
Vue.prototype.$goRouter = function (url) {
	uni.navigateTo({
		url
	})
}
import {
	baseUrl
} from "@/config/baseUrl.js"
Vue.prototype.baseUrl = baseUrl;
Vue.component("head-nav", headNav)
Vue.component("empty", empty)
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif